<include file="Public:header" />
<style>
.header {
	display: none;
}
.col-sm-12{margin:0; padding:0;}
</style>

<div class="container main">
<form class="checkoutform form-horizontal" action="{:U('saveText')}" method="post">
<input type="hidden" name="id" id="id" value="{$info.id}" >
<input type="hidden" name="name" value="{$name}" id="name">
<div class="setting_table">
  <div class="form-group">
    <div class="col-sm-12">
    
    <eq name="datatype" value="text">
    
      <textarea class="form-control" style="height:110px; margin-top:10px;" name="value" id="value" type="text">{$diydata[$name]}</textarea>
      
    </eq>
    
    
    
      
      <eq name="datatype" value="image">
    
      <input name="value" id="value" type="hidden" value="{$diydata[$name]}" /><img style="margin:0 auto; margin-top:10px; display:block; max-height:90px; vertical-align:top; max-width:100%;" onclick="showImgBox(this);" id="images_" src="<notempty name="diydata[$name]">{$diydata[$name]}<else/>__PUBLIC__/Admin/images/defaultimg.png</notempty>" id="img_url" />
      
      
      <script>
	  showImgBox(document.getElementById('images_'));
	 
	   //$('img').trigger('click');
	  </script>
      
    </eq>
      
    </div>
  </div>
  
  
  
  
  
  
  
  <div class="form-group">
    <div class="col-sm-12">
    
    链接：
      <textarea class="form-control" style="height:50px; margin-top:10px;" name="link" id="link" type="text"><?php echo $diydata[$name.'_link'];?></textarea>
    <a class="btn btn-success btn-sm" style="width:100%; margin-top:5px;" onClick="showLinkBox(this);" href="javascript:void(0);">点击选择链接</a>
    </div>
  </div>
  
  
  
  
  
  
  
  
  
</div>
</div>
</div>
</body>
</html>
